﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class ImageEffectsLightControllerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(ImageEffects.LightController);
			Utils.BeginObjectRegister(type, L, translator, 0, 8, 11, 11);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add2ControllerMap", _m_Add2ControllerMap);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeQualitySetting", _m_ChangeQualitySetting);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterial", _m_SetMaterial);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GlobalShaderSetting", _m_GlobalShaderSetting);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShaderSetting", _m_ShaderSetting);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SingleShaderSetting", _m_SingleShaderSetting);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLightElement", _m_AddLightElement);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLightingElement", _m_RemoveLightingElement);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "openQualityListener", _g_get_openQualityListener);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "AllLightElements", _g_get_AllLightElements);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "markLightString", _g_get_markLightString);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_isRunOnceInEditor", _g_get_m_isRunOnceInEditor);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Main_Light", _g_get_Main_Light);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Main_Light_Transform", _g_get_Main_Light_Transform);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Second_Light", _g_get_Second_Light);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Second_Light_Transform", _g_get_Second_Light_Transform);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Shadow_Color", _g_get_Shadow_Color);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameUpdate", _g_get_frameUpdate);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "globalSetVector", _g_get_globalSetVector);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "openQualityListener", _s_set_openQualityListener);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "AllLightElements", _s_set_AllLightElements);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "markLightString", _s_set_markLightString);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_isRunOnceInEditor", _s_set_m_isRunOnceInEditor);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Main_Light", _s_set_Main_Light);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Main_Light_Transform", _s_set_Main_Light_Transform);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Second_Light", _s_set_Second_Light);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Second_Light_Transform", _s_set_Second_Light_Transform);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Shadow_Color", _s_set_Shadow_Color);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameUpdate", _s_set_frameUpdate);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "globalSetVector", _s_set_globalSetVector);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 1);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "AddGpuSkinningMaterial", _m_AddGpuSkinningMaterial_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateForward", _m_UpdateForward_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearGpuSkinningMaterial", _m_ClearGpuSkinningMaterial_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lightControllerMap", _g_get_lightControllerMap);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "lightControllerMap", _s_set_lightControllerMap);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new ImageEffects.LightController();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to ImageEffects.LightController constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new ImageEffects.LightController();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to ImageEffects.LightController constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Add2ControllerMap(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Add2ControllerMap(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ChangeQualitySetting(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    ImageEffects.LightController.LightControllerQualitySetting _qualitySetting = (ImageEffects.LightController.LightControllerQualitySetting)translator.GetObject(L, 2, typeof(ImageEffects.LightController.LightControllerQualitySetting));
                    
                    gen_to_be_invoked.ChangeQualitySetting( _qualitySetting );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetMaterial(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
                    
                    gen_to_be_invoked.SetMaterial( _mat );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GlobalShaderSetting(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _force = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.GlobalShaderSetting( _force );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShaderSetting(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _force = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.ShaderSetting( _force );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddGpuSkinningMaterial_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _controlMark = LuaAPI.lua_tostring(L, 1);
                    int _configId = LuaAPI.xlua_tointeger(L, 2);
                    
                    ImageEffects.LightController.AddGpuSkinningMaterial( _controlMark, _configId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateForward_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _controlMark = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.Vector3 _forward;translator.Get(L, 2, out _forward);
                    
                    ImageEffects.LightController.UpdateForward( _controlMark, _forward );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearGpuSkinningMaterial_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    ImageEffects.LightController.ClearGpuSkinningMaterial(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SingleShaderSetting(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    ImageEffects.LightElement _lightElement = (ImageEffects.LightElement)translator.GetObject(L, 2, typeof(ImageEffects.LightElement));
                    
                    gen_to_be_invoked.SingleShaderSetting( _lightElement );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLightElement(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    ImageEffects.LightElement _lightElement = (ImageEffects.LightElement)translator.GetObject(L, 2, typeof(ImageEffects.LightElement));
                    
                    gen_to_be_invoked.AddLightElement( _lightElement );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveLightingElement(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    ImageEffects.LightElement _lightElement = (ImageEffects.LightElement)translator.GetObject(L, 2, typeof(ImageEffects.LightElement));
                    
                    gen_to_be_invoked.RemoveLightingElement( _lightElement );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_lightControllerMap(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, ImageEffects.LightController.lightControllerMap);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_openQualityListener(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.openQualityListener);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_AllLightElements(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.AllLightElements);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_markLightString(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.markLightString);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_isRunOnceInEditor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.m_isRunOnceInEditor);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Main_Light(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Main_Light);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Main_Light_Transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Main_Light_Transform);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Second_Light(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Second_Light);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Second_Light_Transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Second_Light_Transform);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Shadow_Color(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.Shadow_Color);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_frameUpdate(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.frameUpdate);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_globalSetVector(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.globalSetVector);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_lightControllerMap(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    ImageEffects.LightController.lightControllerMap = (System.Collections.Generic.Dictionary<string, ImageEffects.LightController>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, ImageEffects.LightController>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_openQualityListener(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.openQualityListener = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_AllLightElements(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.AllLightElements = (System.Collections.Generic.List<ImageEffects.LightElement>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<ImageEffects.LightElement>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_markLightString(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.markLightString = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_isRunOnceInEditor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_isRunOnceInEditor = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Main_Light(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Main_Light = (UnityEngine.Light)translator.GetObject(L, 2, typeof(UnityEngine.Light));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Main_Light_Transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Main_Light_Transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Second_Light(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Second_Light = (UnityEngine.Light)translator.GetObject(L, 2, typeof(UnityEngine.Light));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Second_Light_Transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Second_Light_Transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Shadow_Color(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.Shadow_Color = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_frameUpdate(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.frameUpdate = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_globalSetVector(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                ImageEffects.LightController gen_to_be_invoked = (ImageEffects.LightController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.globalSetVector = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
